const { connection } = require('../../../model/database')
module.exports = (req, res) => {
    var sql = `delete from article where id = ${req.body.id};`
    // 发送
    connection.query(sql, (error, reslut) => {
        if (error) {
            res.status(400).send({
                message: '删除失败',
            })
            return
        }
        res.status(200).send({
            message: '删除成功',
        })
    })
}